Skip to content

mkconcore: exit with an error when the GraphML contains no nodes - #701

Open
yadavchiragg wants to merge 1 commit into
ControlCore-Project:devfrom
yadavchiragg:fix/mkconcore-no-nodes
Open

yadavchiragg wants to merge 1 commit into
ControlCore-Project:devfrom
yadavchiragg:fix/mkconcore-no-nodes

Conversation

@yadavchiragg

Copy link
Copy Markdown

Fixes #700

mkconcore previously exited 0 and wrote an empty study when no nodes were found (empty graph, or a file that is not GraphML). It now logs "No nodes found in " and exits 1.

Added tests/test_mkconcore_no_nodes.py (empty graph and non-XML input); both cases fail without the change. No sample .graphml in the repo has zero nodes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant